package cn.tedu.straw.portal.service;

import cn.tedu.straw.commons.dto.CommentDTO;
import cn.tedu.straw.commons.model.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tedu.cn
 * @since 2020-07-29
 */
public interface ICommentService extends IService<Comment> {
    Comment post(CommentDTO commentDTO, Integer userId, String userNickName);

    Comment delete(Integer commentId, Integer userId, Integer userType);

    Comment update(Integer commentId, String content, Integer userId, Integer type);

}
